﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using DeyuMvc.Dbs;

namespace DeyuMvc.Models
{
    public class Classes
    {
        [DisplayName("班级ID")]
        [Key]
        public string IdClass { get; set; }

        [DisplayName("班级名")]
        public string ClassName { get; set; }

        [DisplayName("年级名")]
        public string GradeName { get; set; }

        [DisplayName("班主任")]
        public string ClassManager { get; set; }
    }

    public class ClassesBll : DBCommon<Classes>
    {
        public override string TableName
        {
            get { return "dy_classes"; }
        }

        public override string PrimaryKey
        {
            get { return "IdClass"; }
        }

        public override string ConnKey
        {
            get { return "default"; }
        }

        public override string ParaF
        {
            get { return "@"; }
        }
    }
}